A Program to Interpolate (And Extrapolate) Between Turtle Programs

نویسنده

  • Ken Kahn
چکیده

People have been creating geometric figures with computer programs consisting of turtle commands such as forward and right since the late 1960s [1]. Here I describe a program that takes in two such programs and produces a new program capable of producing both figures and all the intermediate figures. It can produce a figure that is one third circle and two thirds triangle or one that is half star and half pentagon. The program produced by interpolating, say, a square and a circle program takes in a number between zero and one and produces a figure between a square and a circle. If, however, it is given a number greater than one, or a negative number, it will produce an extrapolation between a square and circle. Interpolated programs can be the basis of playful aesthetic explorations. The intermediate forms can be drawn on the same image. Or animations can be generated where the figures morph into (and beyond) each other. Colours and other attributes of the turtle pen can also be interpolated. Unlike conventional morphing programs, we are interpolating between computational processes rather than static images. Interpolating and Extrapolating Geometric Figures Imagine one had a program that could draw a blue square, a red triangle, and any intermediate shape. One could use it to produce the following image by calling the program with inputs 0.0, 0.01, 0.02, ..., 0.98. 0.99, and 1.0: Figure 1: Interpolation between a square and triangle If the input to the procedure is 0 it draws a square, if it is 1 it draws a triangle, and if it is 0.5 then it draws something that is half square and half triangle (an interpolation). But what if the input is 2? Can it draw

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Multi-Scale Video Frame-Synthesis Network with Transitive Consistency Loss

Traditional approaches to interpolate/extrapolate frames in a video sequence require accurate pixel correspondences between images, e.g., using optical flow. Their results stem on the accuracy of optical flow estimation, and could generate heavy artifacts when flow estimation failed. Recently methods using auto-encoder has shown impressive progress, however they are usually trained for specific...

متن کامل

3D turtle geometry: artwork, theory, program equivalence and symmetry

We define a 3D variant of turtle graphics and present the theoretical foundations of 3D turtle geometry. This theory enables one to reason about open and closed 3D polygonal paths by means of algebraic calculations. In particular, we introduce several equivalence relations on turtle programs and theorems that define corresponding standard forms. We also express the relationship between the symm...

متن کامل

Genetic Population Structure of Hawksbill Turtle (Eretmochelys imbricta) Using Microsatellite Analysis

Information on the genetic structure of marine species is essential for stock improvement programs. In orderto analyses the genetic diversity of the Hawksbill turtle (Eretmochelys imbricte) by the microsatellite geneticmethod, 64 samples were caught from the beaches located in Kish and Qeshm islands. Polymerase chainreactions (PCR) of genomic DNA extracted from the samples wer...

متن کامل

Distribution of Freshwater Turtles in Punjab, Pakistan

A total of 3528 specimens of freshwater turtles belonging to two families viz., Geoemydidae (Brown River Turtle, Kachuga smithi; Indian Saw-backed turtle, K. tecta; Brahminy Rrive Turtle, Hardella thurgi; Spotted Pond Turtle, Geoclemys hamiltonii) and Trionychidae (Indian Soft-shell Turtle, Aspederates gangeticus; Peacock Soft-shell Turtle, A.hurum; Narrow-headed Soft-shell Turtle, Chitra indic...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • I. J. Computers for Math. Learning

دوره 12  شماره 

صفحات  -

تاریخ انتشار 2007